import 'dart:typed_data';

import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'dict_page_view_plugin_method_channel.dart';

abstract class DictPageViewPluginPlatform extends PlatformInterface {
  /// Constructs a DictPageViewPluginPlatform.
  DictPageViewPluginPlatform() : super(token: _token);

  static final Object _token = Object();

  static DictPageViewPluginPlatform _instance = MethodChannelDictPageViewPlugin();

  /// The default instance of [DictPageViewPluginPlatform] to use.
  ///
  /// Defaults to [MethodChannelDictPageViewPlugin].
  static DictPageViewPluginPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [DictPageViewPluginPlatform] when
  /// they register themselves.
  static set instance(DictPageViewPluginPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<void> loadUrl(int id, int tabIndex, String url) {
    throw UnimplementedError('loadUrl() has not been implemented.');
  }

  Future<void> changeTab(int id, int tabIndex) {
    throw UnimplementedError('changeTab() has not been implemented.');
  }

  Future<void> loadTabs(int id, List<dynamic> info) {
    throw UnimplementedError('loadTabs() has not been implemented.');
  }

  Future<Uint8List?> takePhoto(int id, int tabIndex) {
    throw UnimplementedError('loadTabs() has not been implemented.');
  }
}
